package com.itheima.innerclass.成员内部类;

public class Demo1InnerClass {
    /*
    成员内部类演示
     */
    public static void main(String[] args) {
        Outer.Inner oi = new Outer().new Inner();
        oi.show();
    }
}
class Outer{
    private int num =20;
    class Inner{
        int num = 10;

        public void show(){
            int num =5;
            System.out.println(num);
            System.out.println(this.num);
            System.out.println(Outer.this.num);
            System.out.println("Inner的show方法");
        }
    }
}